using System.Reflection;

namespace SBPweb.Controls.Windows
{
	/// <summary>
	/// Class of Version
	/// </summary>
    public class Version
    {
        private static string mName;
        private static System.Version mVersion;

		/// <summary>
		/// Constructor of Version
		/// </summary>
        static Version()
        {
            Assembly asm = Assembly.GetExecutingAssembly();
            AssemblyName name = new AssemblyName(asm.FullName);
            mName = name.Name;
            mVersion = name.Version;
        }

		/// <summary>
		/// Constructor of Version
		/// </summary>
        protected Version()
        {

        }

		/// <summary>
		/// Name
		/// </summary>
        public static string Name
        {
            get
            {
                return mName;
            }
        }

		/// <summary>
		/// File version
		/// </summary>
        public static System.Version FileVersion
        {
            get
            {
                return mVersion;
            }
        }
    }
}
